package com.york.jobmew.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 鉴权服务启动类
 * 为网关提供权限的原子类服务，网关如果从redis获取不到，则通过调用该服务提供权限
 */
@SpringBootApplication
@ComponentScan("com.york.jobmew")
@MapperScan("com.york.jobmew.**.mapper")
// 启用代理，解决this.fun()引起的事务失效问题
@EnableAspectJAutoProxy(exposeProxy = true)
public class AuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class);
    }

}
